//
//  UploadViewController.h
//  iFlickr
//
//  Created by 张 霄鹤 on 09-5-17.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface UploadViewController : UIViewController<UIImagePickerControllerDelegate,UINavigationControllerDelegate,UIAlertViewDelegate>{
	NSMutableArray *imgs;
	UIImagePickerController *pickerController;
	UITableView *table;
	
	UIActivityIndicatorView *uploading;

	BOOL isUploading;
	
	/**
	 * 当前启动后，添加的第几张图片
	 */
	NSInteger picNumber;
	
	NSString *picTitle;
}

@property(nonatomic, retain) IBOutlet UITableView *table;

@property(nonatomic, retain) IBOutlet UIActivityIndicatorView *uploading;


-(void)reloadImages;

-(IBAction)takePhoto:(id)sender;

-(IBAction)takeCamera:(id)sender;

-(IBAction)sendPhotos:(id)sender;

-(void)uploadImpl:(id)notification;

/**
 * UIAlertViewDelegate 实现方法
 */
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;

@end
